﻿using System;
using System.IO;
using System.Web;
using SyCODE.Component.Security;
using SyCODE.Component.DataFactory;

/// <summary>
/// SyCODE 的摘要说明
/// </summary>
namespace SyCODE.Blog
{
    /// <summary>
    /// StringCrypt.aspx 的处理程序
    /// </summary>
    public class StringCrypt : IHttpHandler
    {
        #region IHttpHandler 成员

        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            context.Response.Write(Ticket.Encrypt(Ticket.CONST_CRYPT_KEY, context.Request.Form["dbconn"], 2));
        }

        #endregion
    }
}